package com.gao.gLotusMusic.view;

import com.gao.musicApi.model.Song;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.control.Button;
import javafx.scene.layout.Pane;

import java.util.List;

public class CenterUI extends Pane {
    public static CenterUI instance = new CenterUI();

    private SongTable songTable = new SongTable();

    private CenterUI() {
        setContent(songTable);
    }

    public void setContent(Node... content) {
        getChildren().clear();
        getChildren().addAll(content);
    }

    public void setSongTableItem(List<Song> s) {
        songTable.setitem(s);
    }
}
